package com.city.domain.economic;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 企业从业人员统计信息
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
@Table(name = "enterprise_personcount", schema = "city", catalog = "")
public class EnterprisePersoncount {
    private int id;//主键
    private int enterpriseId;//企业编号索引
    private int workerNum;//职工数量
    private int formalWorkernum;//正式职工人数
    private int temporary;//临时用工(含承包单位)人数
    private int enterpriseTrain;//接受本单位安全培训教育人数
    private int socialSecurity;//缴交社会工商保险人数
    private int security;//安全管理人员人数

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "enterprise_id")
    public int getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(int enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    @Basic
    @Column(name = "worker_num")
    public int getWorkerNum() {
        return workerNum;
    }

    public void setWorkerNum(int workerNum) {
        this.workerNum = workerNum;
    }

    @Basic
    @Column(name = "formal_workernum")
    public int getFormalWorkernum() {
        return formalWorkernum;
    }

    public void setFormalWorkernum(int formalWorkernum) {
        this.formalWorkernum = formalWorkernum;
    }

    @Basic
    @Column(name = "temporary")
    public int getTemporary() {
        return temporary;
    }

    public void setTemporary(int temporary) {
        this.temporary = temporary;
    }

    @Basic
    @Column(name = "enterprise_train")
    public int getEnterpriseTrain() {
        return enterpriseTrain;
    }

    public void setEnterpriseTrain(int enterpriseTrain) {
        this.enterpriseTrain = enterpriseTrain;
    }

    @Basic
    @Column(name = "social_security")
    public int getSocialSecurity() {
        return socialSecurity;
    }

    public void setSocialSecurity(int socialSecurity) {
        this.socialSecurity = socialSecurity;
    }

    @Basic
    @Column(name = "security")
    public int getSecurity() {
        return security;
    }

    public void setSecurity(int security) {
        this.security = security;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EnterprisePersoncount that = (EnterprisePersoncount) o;
        return id == that.id &&
                enterpriseId == that.enterpriseId &&
                workerNum == that.workerNum &&
                formalWorkernum == that.formalWorkernum &&
                temporary == that.temporary &&
                enterpriseTrain == that.enterpriseTrain &&
                socialSecurity == that.socialSecurity &&
                security == that.security;
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, enterpriseId, workerNum, formalWorkernum, temporary, enterpriseTrain, socialSecurity, security);
    }
}
